<div ng-controller="sys_userController" >
    <div class="bg-light lter b-b wrapper-md">
        <div class="col-md-7"><h1 class="m-n font-thin h3">用户管理</h1></div>
        <div clas="col-md-5 " >
            <div class="text-right">
                <button type="submit" class="btn m-b-xs w-xs btn-default text-right bg-light" ui-sref="app.system.user.edit({type:'add' })"><strong>新增</strong></button>
            </div>
        </div>
    </div>
    
    <div class="panel panel-default m-b-none">
  		<div class="panel-body">
  			<form class="form-inline" role="form">
				<div class="form-group">
					<input class="form-control" placeholder="账户"  ng-model="params.account.term">
				</div>
				<div class="form-group">
					<input class="form-control" placeholder="真实姓名"  ng-model="params.name.term">
				</div>
				<div class="form-group">
					<input class="form-control" placeholder="电话号码"  ng-model="params.phone.term">
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-default form-control" ng-click="Table1.load()">查询</button>
				</div>
				<div class="form-group">
					<button type="button" class="btn btn-default form-control" ng-click="Table1.reset()">清空</button>
				</div>
			</form>
  		</div>
  	</div>
	<div class="wrapper-md no-padder">
		<div class="panel panel-default">
			<table class="table m-b-none" app-footable data-page="false" data-filter-text-only="true">
				<thead>
					<tr>
						<th data-sort-name="u.name">账号</th>
						<th data-sort-name="u.expiredDt">过期时间</th>
						<th data-sort-name="u.createTime">创建时间</th>
						<th data-sort-name="u.flushDt">最后登录时间</th>
						<th data-sort-name="u.nonLock">是否未锁定</th>
						<th data-sort-name="u.status">状态</th>
						<th data-sort-ignore="true">备注</th>
						<th data-sort-ignore="true">操作</th>
					</tr>
				</thead>
				<tbody>
					<tr ng-repeat="row in Table1.page.rows">
						<td ng-bind="row.name"></td>
						<td ng-bind="row.expiredDt"></td>
						<td ng-bind="row.createTime"></td>
						<td ng-bind="row.flushDt"></td>
						<td app-dict="row.nonLock" dict-type="YesOrNo"></td>
						<td app-dict="row.status" dict-type="SmsStatus"></td>
						<td ng-bind="row.remarks"></td>
						<td>
							<a  ui-sref="app.system.user.view({id : row.id})" ><i class="glyphicon glyphicon-eye-open"></i>查看</a>&nbsp;&nbsp;
							<a  ui-sref="app.system.user.edit({id : row.id, type:'update' })" ><i class="glyphicon glyphicon-edit"></i>编辑</a>&nbsp;&nbsp;
							<a ng-click="delete(row.id)" ><i class="glyphicon glyphicon-remove"></i>删除</a>
						</td>
					</tr>
				</tbody>
				<tfoot>
					<tr>
						<td colspan="9" class="text-center">
							<div app-pagination="Table1"></div>
						</td>
					</tr>
				</tfoot>
			</table>
		</div>
	</div>
</div>